<h2 class="contentTitle">添加分类</h2>
<form action="<?php echo site_url('/public/aj_add_cate.php');?>" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<div class="pageContent">
	<div class="pageFormContent" layoutH="97">
        <div class="unit">
            <label>分类名：</label>
            <input type="text" name="cate_name" size="25" class="required textInput valid">
            <span class="inputInfo">填写分类名称</span>
		</div>
        <div class="unit">
            <label>所属分类：</label>
            <input name="parent_cate_id" type="hidden"/>
            <input type="text" name="parent_cate_name" size="25" class="textInput" readonly="">
			<a class="btnLook" target="dialog" width="300" href="<?php echo site_url('index.php?m=cate&a=catetree');?>" rel="cate_tree">选择父级分类</a>
            <span class="inputInfo">点击选择父级分类</span>
		</div>
        <div class="unit">
            <label>资源链接：</label>
            <input type="text" name="action" size="25" class="textInput">
            <span class="inputInfo">父类请留空</span>
		</div>
        <div class="unit">
            <label>权限组：</label>
		    <input name="role_ids" type="hidden"/>
            <textarea rows="2" cols="30" class="textInput" name="role_names"  readonly=""></textarea>
			<a class="btnLook" target="dialog" href="<?php echo site_url('index.php?m=role&a=lookup&rel=add_cate');?>" rel="role_lookup">选择所属权限组</a>
            <span class="inputInfo">点击选择权限组</span>
		</div>
        <div class="unit">
            <label>是否显示：</label>
            <select class="combox" name="is_show">
                <option value="0">否</option>
                <option value="1" selected="">是</option>
            </select>
            <span class="inputInfo">是否显示在右侧菜单栏</span>
		</div>
        <div class="unit">
            <label>是否外链：</label>
            <select class="combox" name="type">
                <option value="0" selected="">否</option>
                <option value="1">是</option>
            </select>
            <span class="inputInfo">是否点击时打开站外地址</span>
        </div>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">确认</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
		</ul>
	</div>
</div>
</form>